package com.zhan.drugStore.dao;

import com.zhan.drugStore.bean.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Set;

/**
 * <p>
 * 角色表，定义不同的角色 Mapper 接口
 * </p>
 *
 * @author zy
 * @since 2024-02-02
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    Set<String> getRoleCodeByUserId(Long userId);

    Set<String> getPermissionCodeByUserId(Long userId);
}
